<?php
/***********************************************************
 * Base Controller
 ***********************************************************/

require_once 'Zend/Controller/Action.php';

abstract class BaseController extends Zend_Controller_Action
{
    protected  $messageManager;
    protected $commonData;

    /**
     * (non-PHPdoc)
     * @see library/Zend/Controller/Zend_Controller_Action::init()
     */
    public function init()
    {
        parent::init();
        	//$this->messageManager = new MessageManager();
		//$this->commonData = DefinitionLoader::loadDefinition(APPLICATION_PATH . '/definitions/data.xml');
    }
    /**
     * Pre-dispatch routines
     *
     * @return void
     */
    public function preDispatch()
    {

    }

   /**
     * is loggedin
     */
   // public abstract function isLoggedin();
        
    /**
     * Check wether the action is allowed
     * @param string $actionId the actionId
     * @return boolean true:is allowed;false:is not allowed
     */
     public function  allowed($actionId)
     {

		if ( null == $actionId) return true;
		//TO BE DO

     }
	public function getMessageManager(){
		return $this->messageManager;
	}
	public function getCommonData(){
		return $this->commonData;
	}
}